package com.singlemountain.gcommerce.domain.colorsizequantity;

import com.singlemountain.gcommerce.domain.base.Base;
import com.singlemountain.gcommerce.domain.color.Colord;
import com.singlemountain.gcommerce.domain.size.Sized;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

import javax.persistence.ManyToOne;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class ColorSizeQuantity extends Base {

    @ManyToOne
    private Colord color;

    @ManyToOne
    private Sized sized;

    private int quantity;
}
